[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ColorTable               Defines Color Translation Table

 ColorTable(C0,C1,C2,C3 : Integer);                                   [XG/TP]

    Defines a color translation table, which associates the four color
    values with translated values. Each point on the screen has a color
    lookup number, 0 through 3, which selects the palette color to use for
    that point. When you redraw that point with a color "value" of -1, its
    current value (0..3) is replaced with the corresponding value (C0..C3)
    from the translation table.

              C0    Color # that color 0 maps to on redraw.

              C1    Color # that color 1 maps to on redraw.

              C2    Color # that color 2 maps to on redraw.

              C3    Color # that color 3 maps to on redraw.

          Notes:    The extended graphics external declaration file
                    GRAPH.P must be included to use this procedure.

                    The default color table is (0,1,2,3), which means that
                    a point's color is not changed when redrawn.

  -------------------------------- Example ---------------------------------

           {$I GRAPH.P }

           ColorTable(0,2,1,3); { swap colors 1 and 2 on redraw }

See Also: Palette
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson